package com.pigs.pigsordersystem.mapper;

import com.pigs.pigsordersystem.entity.AdminEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Y.yang
 * @since 2020-03-14
 */
public interface AdminMapper extends BaseMapper<AdminEntity> {
    /**
     * 管理员登录
     * @param adminAccount
     * @param adminPassword
     * @return
     */
    @Select("select admin.admin_id,admin_account,admin_password from admin where admin_account=#{adminAccount} and admin_password=#{adminPassword}")
    public AdminEntity loginAdmin(String adminAccount,String adminPassword);
}
